//去控制台检查看看，当前设备应该要做什么动作
 
module.exports = 
{
    check_action: function(androidBot,device_uid) 
    { 

 
        console.log("子任务check_action链接控制台，获取数据中...");
        //POST请求
        let url = "http://oa.enpingshi.com/api/tamer/check_action.php?device_uid="+device_uid;
        let requestType = "POST";
        let headers = {'Content-Type':'application/x-www-form-urlencoded'};
     
        let _result =  androidBot.urlRequest(url, "GET");


        _result.then(value => {
        console.log(device_uid+"子任务获得结果："+value);
        }).catch(error => {
        console.error('Promise 被拒绝了:', error);
        });


        return _result;

    }


    
};